class CreateInterLeechdoms < ActiveRecord::Migration
  def self.up
    create_table :inter_leechdoms do |t|
      t.string :zczh, :yzczh, :cpmczw, :cpmcyw, :spmzw, :spmyw, :jxzw, :ggzw, :zczhbz, :bzggzw, :sccszw, :sccsyw,
               :csdzzw, :csdzyw, :csgjzw, :csgjyw, :fbzpzwh, :fzrq, :yxjzr, :fbzqymc, :fbzqydz, :fbzwhpzrq, :fbzwhyxqjzr,
               :cplb, :gsmczw, :gsmcyw, :dzzw, :dzyw, :gjzw, :gjyw
      t.integer :flag
      t.integer :oid, :nul => false, :default => 0   
    end
  end

  def self.down
    drop_table :inter_leechdoms
  end
end
